﻿<%Session.CodePage=936%>
<%
if session("username")="" then
Response.Write "<Script>alert('请登录！');history.go(-1);</Script>"
end if
 %>

<html>
<head>
<script language="javascript" type="text/javascript">
    function changeaction() {
        var x = document.getElementById("myform");
        var y = document.getElementById("radio3");
        if (y.checked==true) {
            x.action = "Uploadfile.asp";
            x.enctype = "multipart/form-data";
            x.encoding = "multipart/form-data";
            x.submit();
        }
        else {
            x.action = "upload.asp";
            x.submit();
        }
    }   
</script>
<title>欢迎光临学习资料查询系统</title>
<link href="css/ponts_common.css" rel="stylesheet" type="text/css"/> 
<link href="css/bj_common.css" rel="stylesheet" type="text/css"/> 
<link href="css/bj_others.css" rel="stylesheet" type="text/css"/> 

<meta http-equiv="Content-Type" content="text/html"; charset="GBK">

</head>
<body onLoad="MM_preloadImages('images/background2.jpg')">
<div class="com_1"><img src="images/42.jpg" alt="1"  border="0" align="middle"/></div>
      <div class="com_2">
       <div class="com_2_1">
   		 <span title="首 页" class="com_2_1_1"><a href="index.asp"  class="headline">首 页</a></span>
    	 <span title="资料查询" class="com_2_1_1"><a href="quest.asp"  class="headline">资料查询</a></span>
   		 <span title="资料共享" class="com_2_1_2"><a href="Uploaduser.asp"  class="headline">资料共享</a></span>
 	     <span title="资料求助" class="com_2_1_1"><a href="seeking.asp" class="headline">资料求助</a></span>
  	     <span title="个人中心" class="com_2_1_1"><a href="memcenter.asp" class="headline">个人中心</a></span>
        </div>
      </div> 
         
      <div class="com_3">    
              <div class="com_3_1">
                <% 
				    dim username
						  username=session("username")
 			if username<>"" then 
			 response.Write("<table><tr valign=top><td>"&"&nbsp;"&"</td></tr>")
			 response.Write("<tr><td  width=74 class=ti align=right>")
			 response.Write("你好!</td><td>"&username&"")
			 response.Write("</td></tr></table>")
	 		else 
            response.Write("<table><tr  valign=top>")
			response.Write("<td><p class=ti>"&"用户登录&amp;注册"&"</p>")
            response.Write("<form action=chklogin.asp method=post name=longform>")   
			response.Write("<table><tr valign=top align=center><td width=74>")
			response.Write("用户名</td>")
			response.Write("<td width=170>")
			response.Write("<input name=passname type=text maxlength=20 size=20>")
			response.Write("</td></tr><tr valign=top align=center><td>")
			response.Write("密码</td>")
     		response.Write("<td><input name=password type=password maxlength=18 size=20></td></tr><tr valign=middle align=center>")
			response.Write("<td colspan=2>   <input name=submit type=submit value=登录 size=2>")
			response.Write(" &nbsp; &nbsp;&nbsp; "&"<a href=Reg.asp class=black>" &"注册 "&"</a>")		
			response.Write("</td></tr></table></form></td></tr></table>")
	 end if
				%>
                </div>
            <div class="com_3_2">
               	<form id="myform" action="upload.asp" method="post">		
                  <div class="up_1">
                     <span class="ti">共享您的资料</span>
                  </div>      
                  <div class="up_2">
                  	<span class="ti2">资料名称</span>
                    <span><input type="text" name="filename" maxlength="50" size="50" /></span>
                  </div>
                  <div class="up_2">
                  	<span class="ti2">资料简述</span>
                    <span><textarea rows="5" cols="50" name="message"  tabindex="4" class="txtarea"></textarea></span>
                  </div>
                  <div class="up_2_1"  >
                  	<span class="ti2">你可以</span>
                  </div>
                  <div class="up_2"  >
                    <span class="ti2"><input type="radio" id="radio1" name="upup" value="text1"/>提供资料所在地点</span><span><input type="text" name="filelocation" maxlength="100" size="50" /></span>
                     </div>
                  <div class="up_2"  >
                    <span class="ti2"><input type="radio" id="radio2" name="upup" value="text2"/>提供资料获得链接</span><span><input type="text" name="fileurl"size="50" placeholder="http://将网页链接粘贴到这里" /></span>
                     </div>
                  <div class="up_2"  >
                    <span class="ti2"><input type="radio" id="radio3" name="upup" value="text3"/>直接上传资料</span><span> <input type="file" name="file"  size="50" /></span>
                  </div>    
                   <div class="up_2">
                   		<input type="button" name="up" value="上传" onclick="javascript:changeaction();">&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value="清空">
                   </div>
                     </form>    
            </div>
      </div>
      <div class="com_4">
       Copyright@2012 学习资料共享查询系统 v1.0 版权所有 

</h
      </div>
</body>
</html>
